package pro.spring.inter;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import pro.spring.model.Ucollect;

public interface UcollectMapper {
    int deleteByPrimaryKey(Integer ucId);

    int insert(Ucollect record);

    int insertSelective(Ucollect record);

    Ucollect selectByPrimaryKey(Integer ucId);

    int updateByPrimaryKeySelective(Ucollect record);

    int updateByPrimaryKey(Ucollect record);
    
    //得到总条数
    Integer selectCount();
    
    Integer selectCountByUid(@Param("uId")Integer id,@Param("inType")Integer type);
    
    //得到某个用户的收藏列表
    List<Ucollect> selectByUid(@Param("uId")Integer id,@Param("inType")Integer type,@Param("offset")Integer offset,@Param("pagesize")Integer pagesize);
    
    //分页查询
    List<Ucollect> selectListPage(@Param("offset")Integer offset,@Param("pagesize")Integer pagesize);
}